package com.cy.service;

import com.cy.entity.DiscussPost;
import org.springframework.data.domain.Page;

/**
 * @Author: cy
 * @Date: 2022/02/10/14:12
 * @Description:
 */
public interface ELService {
    // 将帖子保存到elasticsearch
    public void saveDiscussPost(DiscussPost discussPost);

    // 将帖子从elasticsearch删除
    public void deleteDiscussPost(int id);

    public Page<DiscussPost> searchDiscussPost(String keyword, int current, int limit);

}
